﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="meeting_ok.aspx.cs" Inherits="AnyOffice.general.meeting.manage.meeting_ok" %>

<%@ Register TagPrefix="Webdiver" Namespace="Webdiver" Assembly="AspnetPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>会议查询</title>
		
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
				<script>
		function open_meeting(meeting_id)
		{
//			URL="../meeting_detail.aspx?meeting_id=" + meeting_id;
//			myleft=(screen.availWidth-500)/2;
//			window.open(URL,"read_notify","height=400,width=550,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");


		    var mwidth = "600";
		    var mheight = "450";
			var loc_x = parseInt((window.screen.width - mwidth) / 2);
			var loc_y = parseInt((window.screen.height - mwidth) / 2);

			var _oParameter = new Object();
			_oParameter.dialogTitle = "已申请会议";
			_oParameter.openFile = "../meeting_detail.aspx?meeting_id=" + meeting_id + "&num=" + Math.random();

			window.showModalDialog('shDialog.htm', _oParameter, 'dialogHeight:' + mheight + 'px;dialogWidth:' + mwidth + 'px;dialogLeft:' + loc_x + ';dialogTop:' + loc_y + ';help:no;status:no;scroll:yes;titlebar:no;toolbar:no');
        
        
        
        
        
        }
		function delete_meeting(meeting_id)
		{
			msg='确认要删除该会议么？';
			if(window.confirm(msg))
			{
				URL="delete.aspx?meeting_id=" + meeting_id + "&refer=meeting_ok.aspx";
				window.location=URL;
			}
		}
		</script>
	</HEAD>
	<body class="bodycolor" style="padding-top:0;" topMargin="5">
		<form id="Form1" method="post" runat="server">
         <div class="main_div">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="tab_ti" width="40%"><span class="big3">
							已准会议</span>
					</td>
					<td vAlign="bottom" width="20%"><asp:literal id="litNavCount" runat="server"></asp:literal></td>
					<td vAlign="bottom" width="40%"><asp:literal id="litNavPager" runat="server"></asp:literal></td>
				</tr>
			</table>
			<br>
			<asp:panel id="pnlMain" runat="server">									
					<asp:Repeater id="rptMeeting" runat="server" EnableViewState="False">
					<HeaderTemplate>
						<TABLE width="100%" cellSpacing="0" cellPadding="0" border="0" class="tab_pub" align="center">
						<TR>
							<TD noWrap class="TableHeader" align="center">名称</TD>
							<TD noWrap class="TableHeader" align="center">主题</TD>
							<TD noWrap class="TableHeader" align="center">申请人</TD>						
							<TD noWrap class="TableHeader" align="center">开始时间</TD>
							<TD noWrap class="TableHeader" align="center">会议室</TD>
							<TD noWrap class="TableHeader" align="center">操作</TD>
						</TR>
					</HeaderTemplate>
					<ItemTemplate>
					<tr class="TableLine1">
						<td><%#Eval("Name")%></td>
						<td><%#Eval("Topic")%></td>
						<td noWrap align="center"><u title="部门：<%#Eval("DeptName")%>" style="cursor:hand"><%#Eval("ProposerName")%></u></td>
						<td noWrap align="center"><%#Eval("StartTime")%></td>						
						<td noWrap align="center"><%#Eval("RoomName")%></td>
						<td noWrap align="center">
							<a href="javascript:open_meeting('<%#Eval("MeetingId")%>');">详细信息</a>							
							<a href="manage.aspx?meeting_id=<%#Eval("MeetingId")%>&operation=0&refer=meeting_ok.aspx">撤消</a>
							<a href="javascript:delete_meeting('<%#Eval("MeetingId")%>');">删除</a>
						</td>
					</tr>
				</ItemTemplate>	
				<AlternatingItemTemplate>
					<tr class="TableLine2">
						<td><%#Eval("Name")%></td>
						<td><%#Eval("Topic")%></td>
						<td noWrap align="center"><u title="部门：<%#Eval("DeptName")%>" style="cursor:hand"><%#Eval("ProposerName")%></u></td>
						<td noWrap align="center"><%#Eval("StartTime")%></td>						
						<td noWrap align="center"><%#Eval("RoomName")%></td>
						<td noWrap align="center">
							<a href="javascript:open_meeting('<%#Eval("MeetingId")%>');">详细信息</a>
							<a href="manage.aspx?meeting_id=<%#Eval("MeetingId")%>&operation=0&refer=meeting_ok.aspx">撤消</a>							
							<a href="javascript:delete_meeting('<%#Eval("MeetingId")%>');">删除</a>
						</td>
					</tr>				
				</AlternatingItemTemplate>
				<FooterTemplate>
				</TABLE>
				</FooterTemplate>
				</asp:Repeater>
				<div class="div_cotr">
							<Webdiver:AspNetPager id="AspNetPager1" runat="server" CssClass="small1" InputBoxClass="SmallInput" SubmitButtonClass="bnt05"
								Font-Size="10pt" OnPageChanged="ChangePage" HorizontalAlign="Right" ShowCustomInfoSection="left" ShowInputBox="Always"
								SubmitButtonText="转 到" NumericButtonTextFormatString="[{0}]" UrlPaging="True" CustomInfoSectionWidth="35%"
								PagingButtonSpacing="0" ImagePath="../images" ButtonImageNameExtension="n" CpiButtonImageNameExtension="r"
								DisabledButtonImageNameExtension="g" PageSize="10" AlwaysShow="True"></Webdiver:AspNetPager>
					<div style="clear:both;"></div>
				</div>
				</asp:panel>
				<asp:Literal id="litMessage" runat="server"></asp:Literal>
                </div>
		</form>
	</body>
</HTML>
